package com.herench.bunch.cmis.handler;

import com.herench.bunch.cmis.agent.CmisAgent;
import com.herench.bunch.cmis.convert.GiveDrugDictConvert;
import com.herench.bunch.cmis.convert.NurseDictConvert;
import com.herench.bunch.commons.annotation.Handler;
import com.herench.bunch.commons.support.AbstractMessageHandler;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

/**
 * @author luoxiaoming on 18-10-16 上午10:30
 * @email luoxiaoming@herench.com
 */


@Handler(code = "600270", name = "给药途径字典" ,messageConvertClass = GiveDrugDictConvert.class)
public class GiveDrugDict extends AbstractMessageHandler {


    @Autowired
    private CmisAgent cmisAgent;

    @Override
    protected Object proxyInvoke(Object inMessage) throws Exception {
//        Map<String,Object> params = (Map<String, Object>) inMessage;
        List<Map<String,Object>> res = cmisAgent.queryGiveDrug();
        return res;
    }
}
